package com.arong.swing.db.entity;

public class TreeData {
    // 节点id
    private String id;
    // 节点名称
    private String name;
    // 节点父id
    private String pid;
    // 是否是父节点true/false
    private String parentis;

    private String type = "0";

    private String nocheck;// true or false
    private String checked;// true or false
    private String open; // true or false

    public TreeData(String id, String name, String pid, String parentis) {
        this.id = id;
        this.name = name;
        this.pid = pid;
        this.parentis = parentis;
    }

    public TreeData(String name, String id,String pid) {
        this.id = id;
        this.name = name;
        this.pid = pid;
    }

    public TreeData() {
    }

    public String getNocheck() {
        return nocheck;
    }

    public void setNocheck(String nocheck) {
        this.nocheck = nocheck;
    }

    public String getChecked() {
        return checked;
    }

    public void setChecked(String checked) {
        this.checked = checked;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getParentis() {
        return parentis;
    }

    public void setParentis(String parentis) {
        this.parentis = parentis;
    }

    public void setOpen(String open) {
        this.open = open;
    }

    public String getOpen() {
        return open;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String toString() {
        return name;
    }
}
